package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Department;
import cn.wolfcode.car.common.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Department record);

    Department selectByPrimaryKey(Long id);

    List<Department> selectAll();

    int updateByPrimaryKey(Department record);

    List<Department> selectForList(QueryObject qo);

    void changByNameAndSn(@Param("id") Long id, @Param("name") String name, @Param("sn") String sn);
}